package com.woniu.teachmall.mapper;

import com.woniu.teachmall.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    //login
    public User getUserByAccount(String account);

    //注册
    public int insert(User user);
    // 冻结/解冻用户
    int updateUserStatus(@Param("id") Integer id, @Param("status") String status);

    // 更新黑名单状态
    int updateBlacklistStatus(@Param("id") Integer id, @Param("status") String status);

    // 删除用户
    int deleteUser(@Param("id") Integer id);
}
